package com.zhangzhan.gulimallcommcon.constant.orderAndWareUnLockCons;

/**
 * @author 张一恒
 * @version 1.0
 * @description: 库存
 * @date 2024/7/2 11:39
 */

public class WareUnLockConstant {

    //延时队列
    public static final String WARE_DELAY_QUEUE = "ware.delay.queue";
    //延时队列路由键
    public static final String WARE_UNLOCK_WARE = "ware.unlock.ware";
    //配置当延时队列中的msg过期之后转到哪个交换机的参数标识
    public static final String X_DEAD_LETTER_EXCHANGE = "x-dead-letter-exchange";
    //配置转到指定交换机之后路由键是什么的参数标识
    public static final String X_DEAD_LETTER_ROUTING_KEY = "x-dead-letter-routing-key";
    //存入队列中的过期延时时间配置的参数标识
    public static final String X_MESSAGE_TTL = "x-message-ttl";
    public static final Integer ORDER_FAIL_TTL = 60000 * 2;


    //接收死信的队列
    public static final String WARE_RELEASE_WARE_QUEUE = "ware.release.ware.queue";
    //接收死信的队列的路由键
    public static final String WARE_RELEASE_WARE = "ware.release.ware";

    //处理和接收死信的交换机
    public static final String WARE_EVENT_EXCHANGE = "ware-event-exchange";
}
